package com.ruoyi.system.mapper;

import com.ruoyi.system.domain.Message;
import com.ruoyi.system.domain.vo.MessageVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Mapper
@Repository
public interface MessageMapper {
    public List<Message> selectUserSendOther(@Param("user") Long user, @Param("other") Long other);
    public int insertMessage(Message message);
    List<MessageVo> selectNoReadMessage(@Param("user")Long user);

    List<Integer> selectIdByUserAndReadStatus(@Param("user")Long user, @Param("other")Long other);

    int updateMessageStatus(@Param("user") Long user, @Param("other") Long other);

    int deleteForListId(List<Integer> list);
}
